﻿using Art_To_Eagle.Lib.EagleLib;

namespace Art_To_Eagle.Lib
{
    class Eagle
    {
        public static bool Connected { private set; get; } = false;

        public static string Version { private set; get; } = "";

        public static void UpdateState()
        {
            var info = Api.GetApplicationInfo();
            if (info != null)
            {
                Connected = true;
                Version = info.Version;
            }
            else
            {
                Connected = false;
                Version = "";
            }
        }
    }
}
